package com.dy.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @Auther: dy
 * @Date: 2022/4/25 - 04 - 25 - 21:46
 * @Description: com.dy.entity
 * @version: 1.0
 */
@Data
@Document(indexName = "order_index")
public class ESEntity {
    @Id
    @Field(type = FieldType.Keyword)
    private String orderId;

    @Field(type = FieldType.Text)
    private String orderText;

    @Field(type = FieldType.Date)
    private String orderTime;

    @Field(type = FieldType.Text)
    private String address;
}
